//
//  MainViewController.m
//  PaoTuiZai
//
//  Created by  JT on 16/6/14.
//  Copyright © 2016年 新之助同学. All rights reserved.
//

#import "MainViewController.h"

@interface MainViewController ()

@property (nonatomic, retain) BaseTableView *tableView;

@end

@implementation MainViewController

//创建tableView
- (void)createTableView
{

}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    //self.view.backgroundColor = [UIColor redColor];

    //顶端搜索栏
    UIView *searchView = [[UIView alloc] initWithFrame:CGRectMake(0, 20, Main_Screen_Width, 50)];
    [self.view addSubview:searchView];
    searchView.backgroundColor = [UIColor blackColor];
    searchView.alpha = 0.3;

    UILabel *locateLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 20, 50, 50)];
    locateLabel.text = @"沈阳";
    locateLabel.textColor = [UIColor whiteColor];
    [self.view addSubview:locateLabel];

    UIButton *searchButton = [UIButton buttonWithType:UIButtonTypeCustom];
    searchButton.frame = CGRectMake(Main_Screen_Width / 5 * 2, 0, Main_Screen_Width / 5 * 2.5, 30);
    searchButton.center = CGPointMake(searchButton.center.x, searchView.center.y);
    [searchButton setBackgroundImage:[UIImage imageNamed:@"搜索框-1"] forState:UIControlStateNormal];
    [self.view addSubview:searchButton];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
